from page import Page
from tools import log
from tools import set_mail
import unittest
import HTMLTestRunner_PY3
if __name__ == '__main__':
    send=unittest.defaultTestLoader.discover('./',pattern='case.py')
    log('login.txt','w+')
    with open('查实报告.html','wb') as e:
        runner=HTMLTestRunner_PY3.HTMLTestRunner(stream=e,title='查实报告',description='完成')
        runner.run(send)

    set_mail('测试报告',['查实报告.html','login.txt'])